import { GameItem } from '@/typings';
import axios from 'axios';

export default {
  async getGameList() {
    const { status, data } = await axios.get<GameItem[]>('/game/index.json');
    return status === 200 ? data : [];
  },
};
